import java.io.BufferedWriter;
import java.io.IOException;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;

public class Arq2 {

	public static void main(String[] args) {

		Path arq2 = Paths.get("/tmp/greg/arq.txt");
		Charset utf8 = StandardCharsets.UTF_8;

		try (BufferedWriter w = Files.newBufferedWriter(arq2, utf8)) {

			
			w.write(" bosta nenhuma");
			w.write("Vitória em Deus");
			
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

}
